//
//  Genearch.m
//  Eath
//
//  Created by yuhaya on 10/15/14.
//  Copyright (c) 2014 yuhaya. All rights reserved.
//

#import "Genearch.h"

@implementation Genearch

- (id) initWithId:(NSString *)identify andName:(NSString *)name andRelation:(NSString *)relation andPhoto:(NSString *)photo andCard:(NSString *)card andPhone:(NSString *)phone andMain:(BOOL)main andSex:(NSInteger)sex andFullName:full_name andPwd:(NSString *)pwd
{
    self = [super init];
    if (self != nil) {
        [self setId:identify andName:name andRelation:relation andPhoto:photo andCard:card andPhone:phone andMain:main andSex:sex andFullName:full_name andPwd:pwd];
    }
    return self;
}

- (void) setId:(NSString *)identify andName:(NSString *) name andRelation:(NSString *)relation andPhoto:(NSString *)photo andCard:(NSString *)card andPhone:(NSString *)phone andMain:(BOOL)main andSex:(NSInteger)sex andFullName:full_name andPwd:(NSString *)pwd
{
    self.identify = identify;
    self.name = name;
    self.relation = relation;
    self.photo = photo;
    self.card = card;
    self.phone = phone;
    self.main = main;
    self.sex = sex;
    self.full_name = full_name;
    self.password = pwd;
}
@end
